package com.zzh.demo.core.common.constants;

/**
 * description： <br>
 * createTime: 2018/1/811:24 <br>
 *
 * @author zzh
 */
public class Constants {

    /**
     * basic认证请求头属性名
     */
    public static final String HEADER_NAME_BASIC_AUTHORIZE = "Authorization";

    /**
     * basic认证请求头属性值前缀
     */
    public static final String BASIC_AUTHORIZE_PREFIX = "Basic ";

    /**
     * 请求头Cookie属性名
     */
    public static final String HEADER_COOKIE = "Cookie";

    /**
     * Cookie中sessionId属性名
     */
    public static final String COOKIE_NAME_SESSIONID = "SESSION";

    /**
     *  ServletContext保存的所有角色信息的key值
     */
    public static final String APPLICATION_ROLE_MAP = "roleMap";

    /**
     * session域中保存的登录用户的有权限访问的url集合属性名
     */
    public static final String SESSION_USER_URL_SET = "urlSet";

    /**
     * 系统管理员角色ID
     */
    public static final String ROLE_SYSTEM_ADMINISTRATOR_ID = "0000";

    /**
     * 系统管理员用户类型
     */
    public static final int ROLE_SYSTEM_ADMINISTRATOR_USER_TYPE = 0;

    /**
     * 系统管理员角色ID
     */
    public static final String ROLE_SYSTEM_NONEROLE_ID = "";

    /**
     * session域中保存的登录用户的角色ID属性名
     */
    public static final String SESSION_USER_ROLE_ID = "roleId";

    /**
     *  session域中保存的登录用户对象
     */
    public static final String SESSION_LOGIN_USER = "loginUser";

    /**
     * session域中保存的登录用户的当前选定项目ID属性名
     */
    public static final String SESSION_USER_CURRENT_PROJECT_ID = "currentProjectId";

    /**
     * session域中保存的登录用户的userAccount属性名
     */
    public static final String SESSION_USER_ACCOUNT = "userAccount";

    /**
     * session域中保存的登录用户的userName属性名
     */
    public static final String SESSION_USER_ID = "userId";

    /**
     * session域中保存的登录用户的userName属性名
     */
    public static final String SESSION_USER_NAME = "userName";

    /**
     * session域中保存的登录用户的当前选定项目ID属性名
     */
    public static final String SESSION_USER_TYPE = "userType";

    /**
     * 匿名用户
     */
    public static final String USER_ANONYMOUS = "anonymous";

    /**
     * redis保存session的hash对象的key值
     */
    public static final String REDIS_KEY_SESSION = "session";

    /**
     * 首页URI
     */
    public static final String INDEX_URI = "newIndex";
}
